package cqie.frame.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName dept
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dept")
@ApiModel(description = "部门表")
public class Dept implements Serializable {
    /**
     * 部门ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "部门ID")
    private Long id;

    /**
     * 部门码
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "部门码")
    private String code;

    /**
     * 部门名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "部门名称")
    private String name;

    /**
     * 排序码
     */
    @TableField(value = "sortCode")
    @ApiModelProperty(value = "部门排序码")
    private Integer sortCode;

    /**
     * 父级ID
     */
    @TableField(value = "parentId")
    @ApiModelProperty(value = "部门父级ID")
    private Long parentId;

    private static final long serialVersionUID = 1L;
}